<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8">
		<title>老师界面-学生列表</title>
		<!-- Le styles -->
		<link href="resources/css/bootstrap.css" rel="stylesheet">
		<link href="resources/css/styles.css" rel="stylesheet">
		<link href="resources/css/bootstrap-responsive.css" rel="stylesheet">
		<script src="resources/js/jquery.js"></script>
		<script>
			$(function(){
				$("button").click(function(){
					$("#form1").submit();
					alert("保存成绩成功！");
				});
			});
		</script>
	</head>

	<body>
		<div id="main" style="width: 1000px; margin: 0px auto;">
			<b>学生人员列表</b>
			<hr />
			<div id="course_select_list">
				<form id="form1" action="addScore.do" method="post">
				<input type="hidden" name="cid" value="${cid}"/>
				<input type="hidden" name="tid" value="${tid}"/>
				<table class="table table-bordered table-striped">
					<thead>
						<tr>
							<th style="width: 50px;">
								编号
							</th>
							<th style="width: 100px;">
								姓名
							</th>
							<th style="width: 50px;">
								性别
							</th>
							<th style="width: 50px">
								邮箱
							</th>
							<th style="width: 50px">
								电话
							</th>
							<th style="width: 50px">
								分数
							</th>
						</tr>
					</thead>
					<tbody>
						<c:forEach items="${UserList}" var="user" varStatus="p">
							<tr>
								<td>
									<input type="hidden" name="uid" value="${user.userId}"/>
									<a href="#">${p.count}</a>
								</td>
								<td>
									<a href="#">${user.name}</a>
								</td>
								<td>
									<a href="#"> <c:if test="${user.sex==0}">男</c:if> <c:if
											test="${user.sex==1}">女</c:if> </a>
								</td>
								<td>
									<a href="#"> ${user.email}</a>
								</td>
								<td>
									<a href="#">${user.phone}</a>
								</td>
								<td>
									<input type="text" name="score" value="${user.score}"/>
								</td>
							</tr>
						</c:forEach>
					</tbody>
				</table>
				</form>
			</div>
			<button style="width: 100px; height: 35px; float: right">
				<b>提交成绩</b>
			</button>
		</div>
	</body>
</html>